/*
* acooly.cn Inc.
* Copyright (c) 2017 All Rights Reserved.
* create by ouwen
* date:2017-09-20
*/
package com.yiji.fintech.musfinance.entity;


import com.acooly.core.common.domain.AbstractEntity;
import com.yiji.fintech.musfinance.base.enums.CardTypeEnum;
import com.yiji.fintech.musfinance.base.enums.PersonalCorporateTypeEnum;
import com.yiji.fintech.musfinance.base.enums.SubTransactionTypeEnum;
import com.yiji.fintech.musfinance.base.enums.TransactionTypeEnum;
import com.yiji.fintech.musfinance.common.annotation.ChannelAnnotation;
import com.yiji.fintech.musfinance.common.annotation.FieldQuery;
import com.yiji.fintech.musfinance.common.enums.StatusEnum;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;
import javax.validation.constraints.Size;

/**
 * center_business_rule Entity
 *
 * @author ouwen
 * Date: 2017-09-20 23:38:05
 */
@Getter
@Setter
@Entity
@Table(name = "center_business_rule")
public class BusinessRule extends AbstractEntity {
	/** serialVersionUID */
	private static final long serialVersionUID = 1L;


	/** 商户号 */
	@Size(max=30)
	@ChannelAnnotation
	@FieldQuery
    private String partnerId;

	/** 交易类型 */
    @Enumerated(EnumType.STRING)
	@ChannelAnnotation
	@FieldQuery
    private TransactionTypeEnum transactionType;

	/** 子交易类型 */
    @Enumerated(EnumType.STRING)
	@ChannelAnnotation
	@FieldQuery
    private SubTransactionTypeEnum subTransactionType;

	/** 对公对私 */
    @Enumerated(EnumType.STRING)
	@ChannelAnnotation
	@FieldQuery
    private PersonalCorporateTypeEnum personalCorporateType;

	/** 借贷类型 */
    @Enumerated(EnumType.STRING)
	@ChannelAnnotation
	@FieldQuery
    private CardTypeEnum cardType;

	/** 银行编码 */
	@Size(max=255)
	@ChannelAnnotation
	@FieldQuery
    private String instBankId;

	/** 状态 */
    @Enumerated(EnumType.STRING)
	@ChannelAnnotation
	@FieldQuery
    private StatusEnum status;

	/** 规则名称 */
	@Size(max=0)
    private String ruleName;

	/** 备注 */
	@Size(max=32)
    private String memo;



}
